Skip to content

Implement AcuantCapture React component#3922

Merged
aduth merged 2 commits intomasterfrom
add/acuant-react
Jul 16, 2020
Merged

Implement AcuantCapture React component#3922
aduth merged 2 commits intomasterfrom
add/acuant-react

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Jul 15, 2020

Why: The single page document authorization upload flow will be implemented using React. As part of this effort, it will be necessary to integrate Acuant's Web SDK for image capturing.

This pull request proposes a minimal set of changes for a basic integration of Acuant image capture using React components.

As implemented, it's largely composed of:

  • A context provider, which is responsible for loading and initializing the web SDK
  • The user-facing component which prompts the user to begin the capture
  • The capture canvas component, required by the Acuant web SDK

It does not intend to:

Testing steps:

  • Navigate to http://localhost:3000/
  • Log in to your account
  • Navigate to http://localhost:3000/verify
  • Click checkbox
  • Click Continue
  • Click link "Upload from your computer"
  • Observe "Loading..." indicator while Acuant SDK is loading
  • Observe "Take Photo" button appears when Acuant SDK is ready
  • Click "Take Photo"
  • In a desktop browser, it's likely you'll be prompted to upload an image. Upload a photo.
  • Observe photo preview appears after selected

Screenshot:

Screenshot

@aduth aduth force-pushed the add/acuant-react branch from 2131ec3 to a61c113 Compare July 15, 2020 20:30
Copy link
Copy Markdown
Contributor

@jmhooper jmhooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool, thanks for putting this together

aduth added 2 commits July 16, 2020 16:14
**Why**: While Airbnb's JavaScript standards do reference this rule in context of 10.8 multiline import, the rule as configured applies to much more than just import statements, and often conflicts with Prettier formatting
Why: The single page document authorization upload flow will be implemented using React. As part of this effort, it will be necessary to integrate Acuant's Web SDK for image capturing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants